import request from '@/utils/request'

// 查询DispatchLists列表
export function listDispatchLists(query) {
  return request({
    url: '/business/DispatchLists/list',
    method: 'get',
    params: query
  })
}

// 查询DispatchLists详细
export function getDispatchLists(autoid) {
  return request({
    url: '/business/DispatchLists/' + autoid,
    method: 'get'
  })
}

// 新增DispatchLists
export function addDispatchLists(data) {
  return request({
    url: '/business/DispatchLists',
    method: 'post',
    data: data
  })
}

// 修改DispatchLists
export function updateDispatchLists(data) {
  return request({
    url: '/business/DispatchLists',
    method: 'put',
    data: data
  })
}

// 删除DispatchLists
export function delDispatchLists(autoid) {
  return request({
    url: '/business/DispatchLists/' + autoid,
    method: 'delete'
  })
}

// 导出DispatchLists
export function exportDispatchLists(query) {
  return request({
    url: '/business/DispatchLists/export',
    method: 'get',
    params: query
  })
}